package cn.stylefeng.guns.generator.engine.config;

import cn.stylefeng.guns.generator.executor.config.GunsGeneratorConfig;
import lombok.Data;

@Data
public class ReqParamConfig {
    private String packageName;

    public ReqParamConfig(GunsGeneratorConfig gunsGeneratorConfig){
        packageName =  getPackName(gunsGeneratorConfig.getContextConfig().getModuleName(),gunsGeneratorConfig.getContextConfig().getEntityName());
    }

    public static  String getPackName(String modelPackName,String entityName){
        return modelPackName+".model.reqparam."+entityName+"ListParam";
    }
}
